#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int count = 0;
	int m = 0;
	printf("money:> ");
	scanf("%d", &m);
	while (m)
	{
		count++;
		m--;
		if (count % 2 == 0)
		{
			m++;
		}
	}
	printf("count:> %d", count);
	return 0;
}